package com.seckill.search.domain.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(description = "商品信息")
public class ItemVO {
    @ApiModelProperty(value = "商品id", example = "1")
    private Long id;
    @ApiModelProperty(value = "商品名称", example = "Java")
    private String name;
    @ApiModelProperty(value = "商品价格，单位分", example = "32900")
    private Long price;
    @ApiModelProperty(value = "商品封面地址", example = "default-cover-url.jpg")
    private String image;
    @ApiModelProperty(value = "商品销量", example = "3920")
    private Integer sold;

    public static final String[] EXCLUDE_FIELDS =
            {"firstCateId", "secondCateId", "thirdCateId",
                    "publishTime", "status"};
}
